// 评论模拟数据
export const mockComments = [
  {
    id: 1,
    nickname: '小明',
    email: '10837907@qq.com',
    homepage: 'https://xiaoming.com',
    avatar: 'https://q2.qlogo.cn/headimg_dl?dst_uin=10837907&spec=100',
    content: '写得真好，受益匪浅！',
    createdAt: '2024-05-01T10:00:00',
    isAdmin: true,
    replies: [
      {
        id: 101,
        nickname: '小红',
        email: 'xiaohong@qq.com',
        homepage: '',
        avatar: 'https://q2.qlogo.cn/headimg_dl?dst_uin=87654321&spec=100',
        content: '同感！',
        createdAt: '2024-05-01T10:10:00',
        replyToUser: '小明',
        isAdmin: false,
      },
      {
        id: 102,
        nickname: '小刚',
        email: '1242306285@qq.com',
        homepage: '',
        avatar: 'https://q2.qlogo.cn/headimg_dl?dst_uin=1242306285&spec=100',
        content: '感谢分享！',
        createdAt: '2024-05-01T10:12:00',
        replyToUser: '小明',
        isAdmin: true,
      },
    ],
  },
  {
    id: 2,
    nickname: 'CoderA',
    email: 'codera@qq.com',
    homepage: '',
    avatar: 'https://q2.qlogo.cn/headimg_dl?dst_uin=34567890&spec=100',
    content: '请问有源码吗？',
    createdAt: '2024-05-01T11:00:00',
    replies: [
      {
        id: 103,
        nickname: '作者',
        email: 'author@qq.com',
        homepage: 'https://author.com',
        avatar: 'https://q2.qlogo.cn/headimg_dl?dst_uin=99999999&spec=100',
        content: '已开源，见文末链接。',
        createdAt: '2024-05-01T11:05:00',
        replyToUser: 'CoderA',
      },
    ],
  },
  // ... 省略部分 ...
]

// 生成更多模拟评论
for (let i = 3; i <= 20; i++) {
  mockComments.push({
    id: i,
    nickname: `访客${i}`,
    email: `guest${i}@qq.com`,
    homepage: '',
    avatar: `https://q2.qlogo.cn/headimg_dl?dst_uin=${10000000 + i}&spec=100`,
    content: `这是第${i}条评论，内容很精彩！`,
    createdAt: `2024-05-01T${10 + Math.floor(i / 2)}:${(i * 3) % 60}:00`,
    replies: [
      {
        id: 200 + i,
        nickname: `回复者${i}`,
        email: `reply${i}@qq.com`,
        homepage: '',
        avatar: `https://q2.qlogo.cn/headimg_dl?dst_uin=${20000000 + i}&spec=100`,
        content: `回复访客${i}：谢谢你的评论！`,
        createdAt: `2024-05-01T${11 + Math.floor(i / 2)}:${(i * 5) % 60}:00`,
        replyToUser: `访客${i}`,
      },
    ],
  })
}
